package hcn.response;

import javax.xml.bind.annotation.XmlElement;
import java.io.Serializable;

/**
 * @author fzy91
 * @title: PrescriptionDrugs
 * @projectName common-clinical
 * @description: 药品信息集合（处方下的所有药品）
 * @date 2022/5/2615:22
 */
public class PrescriptionDrugs implements Serializable {
    //发药记录序号
    private String dispensingRecordId;
    // 药品名称
    private String prescriptionDrug;
    //药品信息集合
    private String drugCode;
    //药品编码
    private String drugUnitPrice;
    //药品单价
    private String drugstoreUnit;
    //药品-药房单位
    private String drugSendNumber;
    //药物发放数量
    private String drugType;
    //药物类型代码
    private String drugTotalCost;
    // 药品总计金额
    private String drugName;

    @XmlElement(name = "PrescriptionDrug")
    public String getPrescriptionDrug() {
        return prescriptionDrug;
    }

    public void setPrescriptionDrug(String prescriptionDrug) {
        this.prescriptionDrug = prescriptionDrug;
    }

    @XmlElement(name = "DrugCode")
    public String getDrugCode() {
        return drugCode;
    }

    public void setDrugCode(String drugCode) {
        this.drugCode = drugCode;
    }

    @XmlElement(name = "DrugUnitPrice")
    public String getDrugUnitPrice() {
        return drugUnitPrice;
    }

    public void setDrugUnitPrice(String drugUnitPrice) {
        this.drugUnitPrice = drugUnitPrice;
    }

    @XmlElement(name = "DrugstoreUnit")
    public String getDrugstoreUnit() {
        return drugstoreUnit;
    }

    public void setDrugstoreUnit(String drugstoreUnit) {
        this.drugstoreUnit = drugstoreUnit;
    }

    @XmlElement(name = "DrugSendNumber")
    public String getDrugSendNumber() {
        return drugSendNumber;
    }

    public void setDrugSendNumber(String drugSendNumber) {
        this.drugSendNumber = drugSendNumber;
    }

    @XmlElement(name = "DrugType")
    public String getDrugType() {
        return drugType;
    }

    public void setDrugType(String drugType) {
        this.drugType = drugType;
    }

    @XmlElement(name = "DrugTotalCost")
    public String getDrugTotalCost() {
        return drugTotalCost;
    }

    public void setDrugTotalCost(String drugTotalCost) {
        this.drugTotalCost = drugTotalCost;
    }

    @XmlElement(name = "DrugName")
    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    @XmlElement(name = "DispensingRecordId")
    public String getDispensingRecordId() {
        return dispensingRecordId;
    }

    public void setDispensingRecordId(String dispensingRecordId) {
        this.dispensingRecordId = dispensingRecordId;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"prescriptionDrug\":\"")
                .append(prescriptionDrug).append('\"');
        sb.append(",\"drugCode\":\"")
                .append(drugCode).append('\"');
        sb.append(",\"drugUnitPrice\":\"")
                .append(drugUnitPrice).append('\"');
        sb.append(",\"drugstoreUnit\":\"")
                .append(drugstoreUnit).append('\"');
        sb.append(",\"drugSendNumber\":\"")
                .append(drugSendNumber).append('\"');
        sb.append(",\"drugType\":\"")
                .append(drugType).append('\"');
        sb.append(",\"drugTotalCost\":\"")
                .append(drugTotalCost).append('\"');
        sb.append(",\"drugName\":\"")
                .append(drugName).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
